package com.owl.app;

import android.app.Activity;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

public class top {

	public Activity act;
	
	public top(){
		
	}
	
	public top(Activity tmpact){
		act = tmpact;
	}
	
	public void init(){
		// top.xml ///////////////////////////////////////////////////
		TextView topTitle = (TextView)act.findViewById(R.id.topTitle);
		topTitle.setText(R.string.main_name);
		ImageButton top_arrow_left = (ImageButton)act.findViewById(R.id.top_arrow_left);
		top_arrow_left.setOnClickListener(new ImageButton.OnClickListener(){
			public void onClick(View v){
				act.onBackPressed();
			}
		});
		ImageButton top_arrow_right = (ImageButton)act.findViewById(R.id.top_arrow_right);
		top_arrow_right.setVisibility(View.INVISIBLE);
		/*top_arrow_right.setOnClickListener(new ImageButton.OnClickListener(){
			public void onClick(View v){
				
			}
		});*/
	}
}
